package com.koron.order.LineHomepage.mapper;


import com.koron.order.LineHomepage.bean.VO.*;
import com.koron.order.LineHomepage.bean.query.DefectReportQuery;
import com.koron.order.LineHomepage.bean.query.RiskReportQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Set;



@Mapper
public interface LineHomePageMapper {

    List<LineDefectVO> getDefectCount();

    Integer getRiskCount();

    Integer getUnvRiskCount();

    List<RiskReportVO> getRiskKeyword(@Param("query") RiskReportQuery riskReportQuery);

    List<String> getDeptAndOrg(@Param("deptId") String deptId);

    List<DefectReportVO> getDefectKeys(@Param("query") DefectReportQuery defectReportQuery);

    List<DefectStatisticVO> getDefectStatistic(@Param("date") Date date, @Param("deptIds") Set<String> deptIds);

    List<LineDeptAndOrg> getDeptAndOrg2();

    Integer getThisYearTrip();

    Integer getLastYearTrip();

    Integer getThisQuarterTrip();

    Integer getLastQuarterTrip();

    List<EquipmentLatlon> selectLatLong( @Param("ids") List<String> ids);

}
